package com.fwj.core.common.execption;

import com.fwj.core.common.model.ResponseEnum;

/**
 * @Author: fwj
 * @Data: 2022/4/10 14:33
 * @Version 1.0
 * @Description:
 */


public class CommonException extends RuntimeException{

    ResponseEnum responseEnum;

    public CommonException(){
        this.responseEnum = ResponseEnum.SERVER_ERROR;
    }

    public CommonException(ResponseEnum responseEnum){
        this.responseEnum = responseEnum;
    }

    public ResponseEnum getResponseEnum(){
        return this.responseEnum;
    }
}
